package top.jle.jpa.basic.entities;


import lombok.Getter;

/**
 * 带时间标记的实体接口
 * 
 * @author jim
 *
 */
public interface TimeMarkedEntity  extends Entity{

	@Getter
	enum PropertyMapping{
		CREATE_TIME("createTime","create_time"),
		LAST_MODIFY_TIME("lastModifyTime","last_modify_time");
		private final String property;
		private final String column;

		PropertyMapping(String property, String column) {
			this.property = property;
			this.column = column;
		}

	}

	String PROP_CREATE_TIME = "createTime";
	String PROP_LAST_MODIFY_TIME = "lastModifyTime";
	
	
	/**
	 * 创建时间
	 */
	Long getCreateTime() ;
	
	/**
	 * 设置创建时间
	 */
	void setCreateTime(Long createTime);

	/**
	 * 最后一次修改时间
	 */
	Long getLastModifyTime();

	/**
	 * 设置最后一次修改时间
	 */
	void setLastModifyTime(Long lastModifyTime);
	
	
}
